﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pcb.BLL;

namespace Pcb.Web.admin.orders
{
    public partial class order_add : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        //加载数据
        private void LoadData()
        {
            /*
            网络支付折扣	工程费
            网络支付折扣	拼版费
            网络支付折扣	板费
            网络支付折扣	菲林费
            网络支付折扣	税费
            网络支付折扣	喷镀费
            网络支付折扣	测试费
            网络支付折扣	加急费
            网络支付折扣	颜色费    
            var price1 = (parseInt(width * length * num) / 10000) * 400;        //板费 400/m2
            var price2 = 0;                                                     //拼版费
            var price3 = 40;                                                    //工程费
            var price4 = parseInt(price1 * 0.04);                               //菲林费 400/m2
            var price5 = 0;                                                     //增值税|税费 6个点                     
            var price6 = 0; // pf * 100;                                        //沉金加费|喷镀费  //20%以内的沉金面积
            var price7 = pf * 50;                                               //测试费
            var price8 = 0;                                                     //加急费
            var price9 = 0;                                                     //颜色费
             * */
            OptionBLL bll = new OptionBLL();

            NetPay_Hidden1.Value = bll.GetValue("网络支付折扣", "板费").ToString();
            NetPay_Hidden2.Value = bll.GetValue("网络支付折扣", "拼版费").ToString();
            NetPay_Hidden3.Value = bll.GetValue("网络支付折扣", "工程费").ToString();
            NetPay_Hidden4.Value = bll.GetValue("网络支付折扣", "菲林费").ToString();
            NetPay_Hidden5.Value = bll.GetValue("网络支付折扣", "税费").ToString();
            NetPay_Hidden6.Value = bll.GetValue("网络支付折扣", "喷镀费").ToString();
            NetPay_Hidden7.Value = bll.GetValue("网络支付折扣", "测试费").ToString();
            NetPay_Hidden8.Value = bll.GetValue("网络支付折扣", "加急费").ToString();
            NetPay_Hidden9.Value = bll.GetValue("网络支付折扣", "颜色费").ToString();

            /*
            49	需要发票	不需要
            50	需要发票	普通发票
            51	需要发票	增值税发票
            52	飞针测试	全部测试(样板及多层板免费测试)
            53	基础设置	板费单价
            54	基础设置	工程费
            55	基础设置	菲林费
            * */
            Hidden49.Value = bll.GetValue("需要发票", "不需要").ToString();
            Hidden50.Value = bll.GetValue("需要发票", "普通发票").ToString();
            Hidden51.Value = bll.GetValue("需要发票", "增值税发票").ToString();
            Hidden52.Value = bll.GetValue("飞针测试", "全部测试(样板及多层板免费测试)").ToString();
            Hidden53.Value = bll.GetValue("基础设置", "板费单价").ToString();
            Hidden54.Value = bll.GetValue("基础设置", "工程费").ToString();
            Hidden55.Value = bll.GetValue("基础设置", "菲林费").ToString();

        }
    }
}